#define _CRT_SECURE_NO_WARNINGS 1
#include"Slist.h"
#include<stdlib.h>
int main()
{
#if 0
	Sltnode* node1 = (Sltnode*)malloc(sizeof(Sltnode));
	node1->data = 1;
	Sltnode* node2 = (Sltnode*)malloc(sizeof(Sltnode));
	node2->data = 2;
	Sltnode* node3 = (Sltnode*)malloc(sizeof(Sltnode));
	node3->data = 3;
	Sltnode* node4 = (Sltnode*)malloc(sizeof(Sltnode));
	node4->data = 4;

	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = NULL;

	Sltnode* ptr = node1;
	Sltprint(ptr);
#endif
	Sltnode* slt = NULL;
	Sltpushback(&slt, 1);
	Sltpushback(&slt, 2);
	Sltpushback(&slt, 3);
	Sltpushback(&slt, 4);
	Sltprint(slt);
	Slpushfront(&slt, 6);
	Sltprint(slt);
	Stlpopback(&slt);
	Sltprint(slt);
	return 0;
}